package com.platform.common.config.rabbit;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    /**
     * 数据采集队列
     *
     * @return
     */
    @Bean
    public Queue jobQueue(){
        return new Queue("job_queue");
    }

    /**
     * 天气队列
     *
     * @return
     */
    @Bean
    public Queue weatherQueue(){
        return new Queue("weather_queue");
    }
}
